var CLIEngine = require("eslint").CLIEngine;

var cli = new CLIEngine({
    env: {
        node: true,
    },
    rules: {
        'no-console': 'off',
        'indent': ['error', 2],//缩进为2个空格
        'quotes': ['error', 'single'],//单引号
    },
});

var report = cli.executeOnFiles(["./merge.js"]);

